﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Corretora.aspx.cs" Inherits="NUP.Corretora" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
          <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="1">
              <asp:View ID="View2" runat="server">
                  <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                      DataObjectTypeName="Camadas.CorretoraTO" DeleteMethod="Deletar" 
                      InsertMethod="Salvar" SelectMethod="SelTodos" TypeName="Camadas.CorretoraBO" 
                      UpdateMethod="Atualizar"></asp:ObjectDataSource>
                  <br />
                  <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                      CellPadding="4" DataKeyNames="Codigo" DataSourceID="ObjectDataSource1" 
                      ForeColor="#333333" GridLines="None">
                      <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                      <Columns>
                          <asp:BoundField DataField="Codigo" HeaderText="Codigo" ReadOnly="True" 
                              SortExpression="Codigo" />
                          <asp:BoundField DataField="Descricao" HeaderText="Descricao" 
                              SortExpression="Descricao" />
                      </Columns>
                      <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                      <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                      <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                      <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                      <EditRowStyle BackColor="#999999" />
                      <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                  </asp:GridView>
                  <br />
                  <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                      CellPadding="4" DataKeyNames="Codigo" DataSourceID="ObjectDataSource1" 
                      DefaultMode="Insert" ForeColor="#333333" GridLines="None" Height="50px" 
                      Width="125px">
                      <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                      <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                      <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                      <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
                      <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                      <Fields>
                          <asp:BoundField DataField="Codigo" HeaderText="Codigo" ReadOnly="True" 
                              SortExpression="Codigo" />
                          <asp:BoundField DataField="Descricao" HeaderText="Descricao" 
                              SortExpression="Descricao" />
                          <asp:CommandField ShowInsertButton="True" />
                      </Fields>
                      <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                      <EditRowStyle BackColor="#999999" />
                      <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                  </asp:DetailsView>
              </asp:View>          
              <asp:View ID="View1" runat="server">
                  <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" BackColor="#EFF3FB" 
                      BorderColor="#B5C7DE" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em">
                      <StepStyle Font-Size="0.8em" ForeColor="#333333" />
                      <StartNavigationTemplate>
                          <asp:Button ID="StartNextButton" runat="server" BackColor="White" 
                              BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                              CommandName="MoveNext" Font-Names="Verdana" Font-Size="0.8em" 
                              ForeColor="#284E98" Text="Próximo" />
                      </StartNavigationTemplate>
                      <WizardSteps>
                          <asp:WizardStep ID="WizardStep1" runat="server" Title="Adicionar">
                              <table style="width:100%;">
                                  <tr>
                                      <td>
                                          Selecione da Corretora:</td>
                                      <td>
                                          <asp:DropDownList ID="DropDownList1" runat="server">
                                          </asp:DropDownList>
                                      </td>
                                      <td>
                                          &nbsp;</td>
                                  </tr>
                                  <tr>
                                      <td>
                                          Vigência da Regra</td>
                                      <td>
                                          &nbsp;</td>
                                      <td>
                                          &nbsp;</td>
                                  </tr>
                                  <tr>
                                      <td>
                                          Data Incial</td>
                                      <td>
                                          <asp:Calendar ID="Calendar2" runat="server" BackColor="White" 
                                              BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                              Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                                              Width="200px">
                                              <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                              <NextPrevStyle VerticalAlign="Bottom" />
                                              <OtherMonthDayStyle ForeColor="Gray" />
                                              <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                              <SelectorStyle BackColor="#CCCCCC" />
                                              <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                              <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                              <WeekendDayStyle BackColor="#FFFFCC" />
                                          </asp:Calendar>
                                          <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                              OnClick="LinkButton1_Click">Adicionar</asp:LinkButton>
                                      </td>
                                      <td>
                                          &nbsp;</td>
                                  </tr>
                                  <tr>
                                      <td>
                                          Data Final</td>
                                      <td>
                                          <br />
                                          <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" 
                                              EnableTheming="True" OnCheckedChanged="CheckBox1_CheckedChanged" Text="Atual" />
                                          <asp:Calendar ID="dtFinal_Calendar" runat="server" BackColor="White" 
                                              BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                              Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                                              Width="200px">
                                              <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                              <NextPrevStyle VerticalAlign="Bottom" />
                                              <OtherMonthDayStyle ForeColor="Gray" />
                                              <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                              <SelectorStyle BackColor="#CCCCCC" />
                                              <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                                              <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                              <WeekendDayStyle BackColor="#FFFFCC" />
                                          </asp:Calendar>
                                      </td>
                                      <td>
                                          &nbsp;</td>
                                  </tr>
                              </table>
                          </asp:WizardStep>
                          <asp:WizardStep ID="WizardStep2" runat="server" Title="Adicionar Regras">
                              <asp:GridView ID="GridView4" runat="server" CellPadding="4" ForeColor="#333333" 
                                  GridLines="None">
                                  <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                  <EditRowStyle BackColor="#999999" />
                                  <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                  <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                  <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                  <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                  <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                              </asp:GridView>
                              <br />
                              <table style="width:100%;font-size:medium;">
                                  <tr>
                                      <td>
                                          Valores Inicial</td>
                                      <td>
                                          <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td>
                                          Valor Final</td>
                                      <td>
                                          <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td>
                                          Porcentagem</td>
                                      <td>
                                          <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td class="style1">
                                          Valor Fixo</td>
                                      <td class="style1">
                                          <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td>
                                          Vigência</td>
                                      <td>
                                          &nbsp;</td>
                                  </tr>
                                  <tr>
                                      <td>
                                          &nbsp;</td>
                                      <td>
                                          <asp:Button ID="Button1" runat="server" Text="Salvar" />
                                      </td>
                                  </tr>
                              </table>
                              <br />
                          </asp:WizardStep>
                          <asp:WizardStep runat="server" Title="Revisão">
                          </asp:WizardStep>
                      </WizardSteps>
                      <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" 
                          ForeColor="White" />
                      <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" 
                          BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
                          ForeColor="#284E98" />
                      <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
                      <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" 
                          BorderWidth="2px" Font-Bold="True" Font-Size="0.9em" ForeColor="White" 
                          HorizontalAlign="Center" />
                      <StepNavigationTemplate>
                          <asp:Button ID="StepPreviousButton" runat="server" BackColor="White" 
                              BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                              CausesValidation="False" CommandName="MovePrevious" Font-Names="Verdana" 
                              Font-Size="0.8em" ForeColor="#284E98" Text="Anterior" />
                          <asp:Button ID="StepNextButton" runat="server" BackColor="White" 
                              BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" 
                              CommandName="MoveNext" Font-Names="Verdana" Font-Size="0.8em" 
                              ForeColor="#284E98" Text="Próximo" />
                      </StepNavigationTemplate>
                  </asp:Wizard>
              </asp:View>
        </asp:MultiView>
          <br />
          
    </div>
    </form>
</body>
</html>
